USAGE: xrg inimg point_file [-L]
xrg calculates the area of each region in a binary image
by pixel filling using an interior point as
the starting point.
ARGUMENTS:
inimg: input image filename
(TIF)
point_file: list of centroid coordinates
as generated by spp (.vin)
OPTIONS:
-L:
print Software License for this module
Example:
xrg coarbin.tif coarah.vin
coarbin.tif: (see threshm example)
coarah.vin: (generated from xcp)
178 3.000000 547.000000 1.000000 398.000000
22.000000 1.000000
18.000000 2.000000
99.000000 2.000000
64.000000 3.000000
100.000000 5.000000
145.000000 5.000000
545.000000 5.000000
198.000000 7.000000
244.000000 7.000000
340.000000 8.000000
487.000000 8.000000
448.000000 16.000000
307.000000 17.000000
276.000000 18.000000
414.000000 18.000000
391.000000 21.000000
252.000000 22.000000
5.000000 26.000000
etc...
output:
read data from file coarah.vin
Area filled for point at (22, 1) = 37
Area filled for point at (18, 2) = 0
Area filled for point at (99, 2) = 132
Area filled for point at (64, 3) = 91
Area filled for point at (100, 5) = 0
Area filled for point at (145, 5) = 243
Area filled for point at (545, 5) = 59
Area filled for point at (198, 7) = 359
Area filled for point at (244, 7) = 109
Area filled for point at (340, 8) = 426
Area filled for point at (487, 8) = 251
Area filled for point at (448, 16) = 482
Area filled for point at (307, 17) = 233
Area filled for point at (276, 18) = 414
Area filled for point at (414, 18) = 95
Area filled for point at (391, 21) = 293
Area filled for point at (252, 22) = 19
Area filled for point at (5, 26) = 172
etc...
Copyright (C) 1999 MLMSoftware Group, LLC.